package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.BuffetExamine;
import com.ruoyi.common.core.domain.entity.BuffetExamineDetail;
import com.ruoyi.system.mapper.BuffetExamineDetailMapper;
import com.ruoyi.system.service.BuffetExamineDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BuffetExamineDetailServiceImpl implements BuffetExamineDetailService {
    @Autowired
    BuffetExamineDetailMapper buffetExamineDetailMapper;

    @Override
    public List<BuffetExamineDetail> selectList(BuffetExamineDetail examinePlan) {
        return buffetExamineDetailMapper.selectList(examinePlan);
    }

    @Override
    public BuffetExamineDetail selectById(Long id) {
        return buffetExamineDetailMapper.selectById(id);
    }

    @Override
    public Boolean create(BuffetExamineDetail examinePlan) {
        return buffetExamineDetailMapper.insert(examinePlan)==1;
    }

    @Override
    public Boolean update(BuffetExamineDetail examinePlan) {
        return buffetExamineDetailMapper.update(examinePlan)==1;
    }

    @Override
    public Boolean deleteById(Long id) {
        return buffetExamineDetailMapper.deleteById(id)==1;
    }
}
